package at.fhv.androideightpuzzle.network;

import java.io.IOException;

import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import at.fhv.androideightpuzzle.network.message.IMessage;

public class BluetoothNetworkSocket extends NetworkSocket{
	
	private BluetoothSocket m_socket;
	
	public BluetoothNetworkSocket(){
		super(ConnectionType.BLUETOOTH);
		
		m_socket=null;
	}
	
	@Override
	public void connect(String host) throws IOException{
		BluetoothDevice bluetoothDevice=null;
		
		m_socket=bluetoothDevice.createRfcommSocketToServiceRecord(null);
	}
	
	@Override
	public void sendMessage(IMessage message) throws IOException{
		//implement networking
	}
	
	@Override
	public void close(){
		//
	}
	
	@Override
	public boolean isAlive(){
		//
		return false;
	}
}
